package com.example.demo.repository;

import com.example.demo.entity.Product.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface ProduceWpInRepairRepository extends JpaRepository<Product, Integer> {

    @Query("select p from Product p where p.billNo = :billNo")
    Product findByNo(String billNo);

    @Query("select p.billStatus from Product p where p.billNo = :billNo")
    String getStatus(String billNo);
}
